define(function (require, exports, module) {
	var Form = require("form");
	var enmu = require("enums");
	var aw = require("ajaxwrapper");
	
	var instance = {
	    initComponent:function (params,widget){      	      	
    		var form = new Form({
    		  	parentNode:".J-form",
    			model:{		
    				id:"room", 
    				defaultButton:false,
    				items:[{
    					name:"orgBuilding.servicePoint",
    					id : "orgBuilding.servicePoint",
    					type:"hidden"
    				},{
    					name:"pkRoom",
    					type:"hidden"
    				},{
    					name:"version",
    					type:"hidden",
    					defaultValue:"0"
    				},{
    					name:"code",
    					id:"code",
    					label:"房间编号",
    					readonly:true
    				},{
    					name:"budName",//  orgBuilding.name
    					label:"所在楼宇",
    					readonly:true,
    				},{
    					name:"floors",
    					label:"所在楼层",
    					readonly:true
    				},{
    					name:"orientation",//orientation.value
    					label:"朝向",
    					readonly:true
    				},{
    					name:"rmtName",// rmtName roomType.name
    					label:"房型",
    					readonly:true,
    				},{
    					name:"acreage",
    					id:"acreage",
    					label:"面积(m²)",
    					readonly:true
    				},{
    					name:"bedcount",
    					label:"床位数",
    					readonly:true,
    				},{
			            name: "rStatus",//status.value 
			            readonly:true,
			            label: "房间状态"	                							           
			  		}]
    			 }
	    	});
	      	widget.set("form",form);
	     }
	};
	  module.exports = instance;  
});